package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName house_part
 */
@TableName(value ="house_part")
public class HousePart implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String partbatch;

    /**
     * 
     */
    private String buytime;

    /**
     * 
     */
    private String storeid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getPartbatch() {
        return partbatch;
    }

    /**
     * 
     */
    public void setPartbatch(String partbatch) {
        this.partbatch = partbatch;
    }

    /**
     * 
     */
    public String getBuytime() {
        return buytime;
    }

    /**
     * 
     */
    public void setBuytime(String buytime) {
        this.buytime = buytime;
    }

    /**
     * 
     */
    public String getStoreid() {
        return storeid;
    }

    /**
     * 
     */
    public void setStoreid(String storeid) {
        this.storeid = storeid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HousePart other = (HousePart) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPartbatch() == null ? other.getPartbatch() == null : this.getPartbatch().equals(other.getPartbatch()))
            && (this.getBuytime() == null ? other.getBuytime() == null : this.getBuytime().equals(other.getBuytime()))
            && (this.getStoreid() == null ? other.getStoreid() == null : this.getStoreid().equals(other.getStoreid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPartbatch() == null) ? 0 : getPartbatch().hashCode());
        result = prime * result + ((getBuytime() == null) ? 0 : getBuytime().hashCode());
        result = prime * result + ((getStoreid() == null) ? 0 : getStoreid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", partbatch=").append(partbatch);
        sb.append(", buytime=").append(buytime);
        sb.append(", storeid=").append(storeid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}